package com.wzf.greattruth.jvm.dispatch;

public class StaticSingleDispatchTester {

    public void sayHello(Human human) {
        System.out.println("human say hello!");
    }

    public void sayHello(Man man) {
        System.out.println("man say hello!");
    }
    public void sayHello(Woman woman) {
        System.out.println("woman say hello!");
    }

    public static void main(String[] args) {
        StaticSingleDispatchTester tester = new StaticSingleDispatchTester();
        Human human = new Man();
        tester.sayHello(human);
    }
}
